import request from '@/utils/request'

// 查询交易设置列表
export function listSetting(query) {
    return request({
        url: '/campus/setting/list',
        method: 'get',
        params: query
    })
}

// 查询交易设置详细
export function getSetting(id) {
    return request({
        url: '/campus/setting/' + id,
        method: 'get'
    })
}

// 新增交易设置
export function addSetting(data) {
    return request({
        url: '/campus/setting',
        method: 'post',
        data: data
    })
}

// 修改交易设置
export function updateSetting(data) {
    return request({
        url: '/campus/setting',
        method: 'put',
        data: data
    })
}

// 删除交易设置
export function delSetting(id) {
    return request({
        url: '/campus/setting/' + id,
        method: 'delete'
    })
}
export function getTradeSettings() {
    return request({
        url: '/campus/setting/getTradeSettings',
        method: 'get'
    })
}